$OpenBSD: patch-src_osgDB_FileUtils_cpp,v 1.2 2015/09/22 18:49:15 pascal Exp $
--- src/osgDB/FileUtils.cpp.orig	Mon Jun  1 15:40:20 2015
+++ src/osgDB/FileUtils.cpp	Thu Sep 10 20:45:13 2015
@@ -78,7 +78,7 @@ typedef char TCHAR;
         #define stat64 stat
     #endif
 #elif defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__DragonFly__) || \
-      (defined(__hpux) && !defined(_LARGEFILE64_SOURCE))
+      defined(__OpenBSD__) || (defined(__hpux) && !defined(_LARGEFILE64_SOURCE))
     #define stat64 stat
 #endif
 
